Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming


SUPER system reference

SUPER is a system reference available at run time within the current instance of a subclass to invoke a method implemented in a super class. A common use for this system reference is to invoke a super class method that the subclass has overridden. For more information on the syntax and use of this system reference, see the "Calling a super class method" section.

The only way a super class's version of an overridden method can be invoked is by referencing it with the SUPER system reference and method name within a subclass. The SUPER system reference can only be used within a subclass to invoke a super class method in the class hierarchy of that subclass. There is no way to directly invoke a super class version of an overridden method from outside of the class hierarchy.

Notes: Unlike THIS-OBJECT, the SUPER system reference is not an object reference, and it can only be used to invoke a super class method from a subclass in the same class hierarchy. You cannot use SUPER, by itself for example, to pass an object reference to the current instance's super class as a parameter.

The SUPER system reference is not the same as the SUPER statement. For more information on the SUPER statement, see the "Constructing an object" section.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095